﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using WpfApp4.Library;

using XEvent.UI;

namespace WpfApp4.Models
{
    public abstract class ViewModelBase : BindableBase
    {
        protected ViewModelBase()
        {

        }

        protected Coroutine StartCoroutine(IEnumerator ie)
        {
            return CoroutineManager.Instance.StartCoroutine(ie);
        }

        protected void StopCoroutine(Coroutine ct)
        {
            CoroutineManager.Instance.StopCoroutine(ct);
        }

        protected void StopAllCoroutine()
        {
            CoroutineManager.Instance.StopAllCoroutine();
        }
    }
}
